<% @page_title = @document.title -%>
<% @inner_page = true -%>

<div>
<%= top_nav @document.document_no, [@document.collection] + @document.sections %>
</div>

<%= render :partial=>@document.class.to_s.downcase, :object=>@document %>

<p class="bottom_navigation">
<%= t('navigate.back_to')%>
<%= link_to @document.section.title, section_path(@document.section), :id=>'backToPrevPage' %>
</p>
<p class="bottom_navigation">
<%= link_to t('collection.all'), collections_path, :id=>"pageTop" %>
</p>

<div class="report-form">
<%= button_to_remote t("document_correction.new"),
  :url=>new_document_correction_path(:document_id=>@document.id),
  :update=>'document_correction' %>
</div>

<div class="report-form" id="document_correction">
</div>
<br />
&nbsp;

